﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZF.BLL;

namespace ZF.WS.info
{
    public partial class Info : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            using (var dc = SiteInfo.CreateDBDataContext())
            {

                var typeList = dc.Dic_InforType.ToList();
                this.lvType.DataSource = typeList;
                this.lvType.DataBind();
                this.lvType1.DataSource = typeList.Select(p=>new{
                    Key=p.InfoTypeId,
                    Text=p.Name
                }); ;
                this.lvType1.DataBind();
               
            }
        }
    }
}
